package com.dianping.cat.home.graph.entity;

import com.dianping.cat.home.graph.BaseEntity;
import com.dianping.cat.home.graph.IVisitor;
import java.util.LinkedHashMap;
import java.util.Map;




public class Graph
  extends BaseEntity<Graph>
{
  private String m_id;
/* 15 */   private Map<String, Item> m_items = new LinkedHashMap();





/* 21 */   public Graph(String id) { this.m_id = id; }




/* 26 */   public void accept(IVisitor visitor) { visitor.visitGraph(this); }


  public Graph addItem(Item item) {
/* 30 */     this.m_items.put(item.getId(), item);
/* 31 */     return this;
  }


  public boolean equals(Object obj) {
/* 36 */     if (obj instanceof Graph) {
/* 37 */       Graph _o = (Graph)obj;

/* 39 */       if (!equals(getId(), _o.getId())) {
/* 40 */         return false;
      }

/* 43 */       return true;
    }

/* 46 */     return false;
  }


/* 50 */   public Item findItem(String id) { return (Item)this.m_items.get(id); }



/* 54 */   public String getId() { return this.m_id; }



/* 58 */   public Map<String, Item> getItems() { return this.m_items; }



  public int hashCode() {
/* 63 */     int hash = 0;

/* 65 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }





/* 72 */   public void mergeAttributes(Graph other) { assertAttributeEquals(other, "graph", "id", this.m_id, other.getId()); }




/* 77 */   public Item removeItem(String id) { return (Item)this.m_items.remove(id); }


  public Graph setId(String id) {
/* 81 */     this.m_id = id;
/* 82 */     return this;
  }

  public Graph() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/graph/entity/Graph.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */